﻿using System.Collections.Generic;

namespace SharPy.GameClasses
{
    public static class clCharacters
    {
        public static List<string> sLabel = new List<string>();
        public static List<string> sName = new List<string>();
        public static List<string> sColor = new List<string>();
        public static List<bool> bNVL = new List<bool>();

        public static void addCharacter(string pLabel, string pName, string pColor, bool pNVL = false)
        {
            sLabel.Add(pLabel);
            sName.Add(pName);
            sColor.Add(pColor);
            bNVL.Add(pNVL);
        }

        public static string getColor(string pLabel)
        {
            if (sLabel.FindIndex(l => l == pLabel) != -1)
                return sColor[sLabel.FindIndex(l => l == pLabel)];
            else
                return "#ffffff";
        }

        internal static bool checkNVL(string pLabel)
        {
            return bNVL[sLabel.FindIndex(l => l == pLabel)];
        }

        internal static string getName(string pLabel)
        {
            return sName[sLabel.FindIndex(l => l == pLabel)].Trim('\'');
        }
    }
}